package bean.wjs.spring.service;

import bean.wjs.spring.dao.UserDao;
import bean.wjs.spring.dao.VipDao;

public class CustomService {
    private UserDao userDao;
    private VipDao vipDao;
    public CustomService(){}

    public CustomService(UserDao userDao, VipDao vipDao) {
        this.userDao = userDao;
        this.vipDao = vipDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setVipDao(VipDao vipDao) {
        this.vipDao = vipDao;
    }

    public void service(){
        userDao.insert();
        vipDao.insert();
    }
}
